/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVA-Data-Structures-and-Algorithms PROJECT
 * All Rights Reserved.
 */

package 单向环链表;

/**
 * @Description
 * @Author 俊昭
 * @Date 2022/4/29
 */
class Node {

    public Node next;
    public int no;

    public Node(int no) {
        this.no = no;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Node node = (Node) o;
        return no == node.no;
    }

    @Override
    public String toString() {
        return "Node{" +
                "出圈编号：" + no +
                '}';
    }
}
